import request from '@/utils/request'

// 查询财务数据关键指标列表
export function listPcwDataKeys(query) {
  return request({
    url: '/pcw/pcwDataKeys/list',
    method: 'get',
    params: query
  })
}

// 查询财务数据关键指标详细
export function getPcwDataKeys(id) {
  return request({
    url: '/pcw/pcwDataKeys/' + id,
    method: 'get'
  })
}

// 保存财务数据关键指标
export function savePcwDataKeys(data) {
  return request({
    url: '/pcw/pcwDataKeys/save',
    method: 'post',
    data: data
  })
}

// 删除财务数据关键指标
export function delPcwDataKeys(id) {
  return request({
    url: '/pcw/pcwDataKeys/' + id,
    method: 'delete'
  })
}

// 导出财务数据关键指标
export function exportPcwDataKeys(query) {
  return request({
    url: '/pcw/pcwDataKeys/export',
    method: 'get',
    params: query
  })
}

// 查询导入的财务数据Excel中的关键指标列表
export function listGroupPcwDataKeys(query) {
  return request({
    url: '/pcw/pcwDataKeys/listGroup',
    method: 'get',
    params: query
  })
}

// 重新计算关键指标
export function refreshIndicator(companyId) {
  return request({
    url: '/pcw/pcwDataKeys/refreshIndicator/' + companyId,
    method: 'get'
  })
}
